@echo off
echo Deleting existing files...
del *.cer
del *.pvk
del *.pfx
echo Create CA certificate...
time /t
makecert ^
       -a sha1 -len 1024 -pe -r ^
       -cy authority -$ individual -sky signature ^
       -n "CN=furia.org" ^
       -b 01/01/2000 -e 01/01/2099 ^
       -sv furia.org.pvk  ^
       furia.org.cer
time /t
echo Create CA certificate file...
pvk2pfx.exe ^
       -pvk furia.org.pvk ^
       -spc furia.org.cer ^
       -pfx furia.org.pfx

echo Create end certificate...
time /t
makecert ^
       -a sha1 -len 1024 -pe ^
       -cy end -$ individual -sky exchange ^
       -iv furia.org.pvk ^
       -ic furia.org.cer ^
       -n "CN=paul@furia.org" ^
       -b 01/01/2000 -e 01/01/2099 ^
       -sv paul.pvk ^
       paul.cer
time /t
echo Create end certificate file...
pvk2pfx.exe ^
       -pvk paul.pvk ^
       -spc paul.cer ^
       -pfx paul.pfx

echo Create server certificate...
time /t
makecert ^
       -a sha1 -len 1024 -pe ^
       -cy end -$ individual -sky exchange ^
       -iv furia.org.pvk ^
       -ic furia.org.cer ^
       -n "CN=proxy.furia.org" ^
       -b 01/01/2000 -e 01/01/2099 ^
       -sv server.pvk ^
       server.cer
time /t
echo Create proxy certificate file...
pvk2pfx.exe ^
       -pvk server.pvk ^
       -spc server.cer ^
       -pfx server.pfx
